package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * US_Meter实体类
 * 
 * @author 
 *
 */
public class UsMeter {
	/***/
	private String MeterNo; 
	/***/
	private String UserNo; 
	/***/
	private String MeterName; 
	/***/
	private String Me; 
	/**
	 * 实例化
	 */
	public UsMeter() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public UsMeter(JSONObject obj) {
		this();
		if (obj.get("MeterNo") instanceof String) {
			this.setMeterNo((String) obj.get("MeterNo"));
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("MeterName") instanceof String) {
			this.setMeterName((String) obj.get("MeterName"));
		}
		if (obj.get("Me") instanceof String) {
			this.setMe((String) obj.get("Me"));
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getMeterNo() != null) {
			result.put("MeterNo",this.getMeterNo());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getMeterName() != null) {
			result.put("MeterName",this.getMeterName());
		}
		if (this.getMe() != null) {
			result.put("Me",this.getMe());
		}
		return result;
	}
	
	
	/**
	 * 获取MeterNo
	 * 
	 * @return
	 */
	public String getMeterNo() {
		return MeterNo;
	}

	/**
	 * 设置MeterNo
	 * 
	 * @param MeterNo
	 */
	public void setMeterNo(String MeterNo) {
		this.MeterNo = MeterNo;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取MeterName
	 * 
	 * @return
	 */
	public String getMeterName() {
		return MeterName;
	}

	/**
	 * 设置MeterName
	 * 
	 * @param MeterName
	 */
	public void setMeterName(String MeterName) {
		this.MeterName = MeterName;
	}
	
	/**
	 * 获取Me
	 * 
	 * @return
	 */
	public String getMe() {
		return Me;
	}

	/**
	 * 设置Me
	 * 
	 * @param Me
	 */
	public void setMe(String Me) {
		this.Me = Me;
	}

	@Override
	public String toString() {
		return "UsMeter [MeterNo=" + MeterNo + " , UserNo=" + UserNo + " , MeterName=" + MeterName + " , Me=" + Me + "  ]";
	
	}
	
	
}
